package cn.tedu.management.portal.service;

import cn.tedu.management.portal.dto.DepartmentDTO;
import cn.tedu.management.portal.dto.SelectDeptDTO;
import cn.tedu.management.portal.model.Department;
import cn.tedu.management.portal.vo.DepartmentVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-12-08
 */
public interface IDepartmentService extends IService<Department> {

    void addDepartment(DepartmentDTO departmentDTO);

    DepartmentVO showDeptById(Integer id);

    void  updateDepartment(DepartmentDTO departmentDTO);

    List<Department> showDepartments();

    void deleteDeptById(Integer id);

    Department findADept(SelectDeptDTO selectDeptDTO);
}
